package com.zp.business.entity.outpFees.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 门诊收费记录明细业务对象
 *
 * @author zhang peng
 * @ date 2024-04-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OutpFeesDetailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String outpFeesDetailId;

    /**
     * 主记录id
     */
    @NotBlank(message = "主记录id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String outpFeesMasterId;

    /**
     * 收费号
     */
    @NotBlank(message = "收费号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String feesNo;

    /**
     * 流水号
     */
    private String serialNo;

    /**
     * 项目类型
     */
    @NotBlank(message = "项目类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemClass;

    /**
     * 诊疗项目名称
     */
    private String packItemName;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemName;

    /**
     * 项目编码
     */
    @NotBlank(message = "项目编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemCode;

    /**
     * 价表ID
     */
    private String priceId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer num;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 进货价格
     */
    private BigDecimal tradePrice;

    /**
     * 网络价格
     */
    private BigDecimal networkPrice;

    /**
     * 门诊费用分类
     */
    @NotBlank(message = "门诊费用分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnRcpt;

    /**
     * 核算项目科目
     */
    @NotBlank(message = "核算项目科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnReckoning;

    /**
     * 会计科目
     */
    @NotBlank(message = "会计科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String subjCode;

    /**
     * 应付费用
     */
    @NotNull(message = "应付费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal costs;

    /**
     * 实收费用
     */
    @NotNull(message = "实收费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal charges;

    /**
     * 舍入差额
     */
    private BigDecimal diffCost;

    /**
     * 机构ID
     */
    @NotBlank(message = "机构ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 处方、检查、检验、治疗项目明细表id
     */
    private String applyItemId;

    /**
     * 门诊医嘱id
     */
    private String clinicOrderId;

    /**
     * 申请号
     */
    private String applyNo;

    /**
     * 诊疗项目id
     */
    private String clinicItemId;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 交费标志
     */
    private String chargeFlag;


    /**
     * 开单科室
     */
    private String applyDept;

    private String applyDeptName;

    /**
     * 执行科室
     */
    private String implementDept;

    private String implementDeptName;

    /**
     * 执行人
     */
    private String implementUser;


    /**
     * 确认标志
     */
    private String confirmFlag;
}
